import unittest,time
from selenium import webdriver
from Page1 import Page1
class Case(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Edge()
        self.driver.maximize_window()

    def tearDown(self):
        time.sleep(2)
        self.driver.quit()

    def test_001_A3mall(self):
        po=Page1(self.driver)
        po.test_A3mall_login()


# 第一种执行方式
if __name__ == '__main__':
    unittest.main()

# 第二种执行方式
# def stuie():
#     stuie=unittest.TestSuite()
#     stuie.addTest(Case('test_001_A3mall'))
#     return stuie
#
# if __name__ == '__main__':
#     ueerr=unittest.TextTestRunner()
#     ueerr.run(stuie())